package com.lxt.basicmvc.net;

import androidx.lifecycle.LiveData;

import com.lxt.basicmvc.bean.BingImg;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;

/**
 * @author joyson
 * @create 2020-09-28
 */
public interface ApiService {
    @GET("HPImageArchive.aspx?format=js&idx=0&n=1")
    Call<BingImg> getBingImg();

    @GET("HPImageArchive.aspx?format=js&idx=0&n=1")
    LiveData<BingImg> getBingImgLiveData();

    @GET("HPImageArchive.aspx?format=js&idx=0&n=1")
    LiveData<String> getBingImgLiveDataS();

}
